<?php
    session_start();
    require_once('./ns_include.php');
    require_once('smallincludes.php');

    function checkLogin($requiredUserLevel)
    {
        if ($requiredUserLevel == 0)
        {
            return;
        }
        if (!isset($_SESSION['userLevel']) || $_SESSION['userLevel'] < $requiredUserLevel) 
        {
            header("Location: authDenied.php");
        }
    }
?>